package com.hs.room.model.archive

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * 档案申请记录
 */
@Entity(tableName = "archive_approval")
data class ArchiveApproval(

    /// 申请用户id  UserID
    /// 档案uid  ArchiveUID
    /// 审批人id AuditID
    /// 申请备注  ApplyForRemark
    /// 审批备注  ApproveRemark
    /// 申请时间 ApplyTime
    /// 审批时间  ApproveTime
    /// 状态(0提交申请，1审核通过，2审核未通过) Status
    /// 借取时限（小时）TimeLimit
    /// 设备uuid
    @PrimaryKey(autoGenerate = true)
    val localId: Long,//本地数据库主键
    @ColumnInfo
    var id: Long,//服务器返回ID
    @ColumnInfo
    var userID: Int,
    @ColumnInfo
    var archiveUID: String,//档案ID
    @ColumnInfo
    var auditID: Int,
    @ColumnInfo
    var applyForRemark: String,
    @ColumnInfo
    var approveForRemark: String,
    @ColumnInfo
    var applyTime: String,
    @ColumnInfo
    var approveTime: String,
    @ColumnInfo
    var status: Int,
    @ColumnInfo
    var timeLimit: Int,
    @ColumnInfo
    var uuid: String
)
